package com.beself.service.impl;

import com.beself.dao.testdao;
import com.beself.service.testService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * @ProjectName: beself
 * @Package: com.beself.service.impl
 * @ClassName: testServiceImpl
 * @Description: java类作用描述
 * @Author: 樊晋源
 * @CreateDate: 2019/10/16 10:38
 * @Version: 1.0
 */
@Service
public class testServiceImpl implements testService {
    @Resource
    private testdao dao;
    @Override
    public int insertAll(int uId) {
        Map map = new HashMap();
        int num =0;
        for (int i=1;i<5;i++){
            for (int j=1;j<16;j++){
                map.put("uId",uId);
                map.put("i",i);
                map.put("j",j);
                int a =dao.insertone(map);
                num =num+a;
            }
        }
        System.out.println(num);

        return num;
    }
}
